package com.zzyk.main.model.pojo;

import com.alibaba.fastjson.JSON;
import com.zzyk.main.model.vo.Model;

import java.util.Date;
import java.util.Set;

public class SysUser extends Model {
    private static final long serialVersionUID = 1L;

    private Integer id;
    private String username;
    private String password;
    private String displayName;
    private String desc;
    private Integer enterprise;
    private Integer readonly;
    private String[] area;
    private Integer status;
    private Date expire;

    private Integer createBy;
    private Date createTime;
    private Integer updateBy;
    private Date updateTime;
    private Set<SysRole> roleSet;
    private Integer[] group;
    private Integer[] deviceList;

    public Integer[] getDeviceList() {
        return deviceList;
    }

    public void setDeviceList(Integer[] deviceList) {
        this.deviceList = deviceList;
    }

    public Integer[] getGroup() {
        return group;
    }

    public void setGroup(Integer[] group) {
        this.group = group;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(Integer enterprise) {
        this.enterprise = enterprise;
    }

    public Integer getReadonly() {
        return readonly;
    }

    public void setReadonly(Integer readonly) {
        this.readonly = readonly;
    }

    public String[] getArea() {
        return area;
    }

    public void setArea(String[] area) {
        this.area = area;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getExpire() {
        return expire;
    }

    public void setExpire(Date expire) {
        this.expire = expire;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Set<SysRole> getRoleSet() {
        return roleSet;
    }

    public void setRoleSet(Set<SysRole> roleSet) {
        this.roleSet = roleSet;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
